package org.japo.java.gui.samples;

import java.awt.Color;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import javax.swing.JTextField;

class GEF implements FocusListener {
//class GEF extends FocusAdapter {

    private IGU igu;

    GEF(IGU igu) {
        this.igu = igu;
    }

    @Override
    public void focusGained(FocusEvent fe) {
        JTextField campo = (JTextField) fe.getSource();
        campo.setBackground(Color.CYAN);
    }

    @Override
    public void focusLost(FocusEvent fe) {
        JTextField campo = (JTextField) fe.getSource();
        campo.setBackground(Color.WHITE);
    }
}
